package com.消除ifelse.策略工厂方式;

import org.springframework.stereotype.Service;

/**
 * @Date 2021/1/14 17:08
 * @Author WangLinBao
 * @Description
 */
@Service("1111")
public class WeiXinPay implements IPay {
    @Override
    public void pay() {
        System.out.println("微信支付");
    }

    public void init(){
        PayStrategyFactory.register("weixin111",this);
    }
}
